package com.lagou.rocket.mapper;

import com.lagou.rocket.entity.StockOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface StockOrderMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(StockOrder record);

    int insertSelective(StockOrder record);

    StockOrder selectByPrimaryKey(Integer id);

    List<StockOrder> selectByStatusy(Integer status);

    int updateByPrimaryKeySelective(StockOrder record);

    int updateByPrimaryKey(StockOrder record);

    StockOrder selectBySidAndUserId(@Param("sid") Integer sid, @Param("userId")Integer userId);
}